#!/bin/sh

echo "Removing generated stuff";

#Clean
make clean > /dev/null ; 

#Removing all Makefile.in files in all directories
find . -iname 'Makefile.in' -type f -exec rm {} \;
find . -iname 'Makefile' -type f -exec rm {} \;
find . -iname '*.o' -type f -exec rm {} \;



#Removing all .deps directories in all directories
find . -iname '.deps' -type d -exec rm -rf {} \;
find . -iname '.libs' -type d -exec rm -rf {} \;

#Removing all generated files located in root
rm -rf \
./aclocal.m4 \
./autom4te.cache \
./compile \
./depcomp \
./install-sh \
./ltmain.sh \
./missing \
./config.guess \
./config.sub \
./config.status \
./config.log \
./libtool \
./configure

echo "";
echo "";


